using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
    public partial class WhArea : BusinessBase<string>
    {
        #region Declarations

        private string _areaCode = String.Empty;
        private string _warehouseCode = String.Empty;
        private string _warehouseName = String.Empty;
        private string _areaName = String.Empty;
        private string _areaType = String.Empty;
        private string _taxType = String.Empty;
        private decimal _length = default(Decimal);
        private decimal _width = default(Decimal);
        private decimal _height = default(Decimal);
        private decimal _acreage = default(Decimal);
        private string _createUserCode = String.Empty;
        private string _createUserName = String.Empty;
        private string _createDate = String.Empty;
        private string _createTime = String.Empty;
        private string _editUserCode = String.Empty;
        private string _editUserName = String.Empty;
        private string _editDate = String.Empty;
        private string _editTime = String.Empty;
        private string _isDeactiivated = String.Empty;
        private string _remark = String.Empty;



        #endregion

        #region Constructors

        public WhArea() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_areaCode);
            sb.Append(_warehouseCode);
            sb.Append(_areaName);
            sb.Append(_areaType);
            sb.Append(_taxType);
            sb.Append(_length);
            sb.Append(_width);
            sb.Append(_height);
            sb.Append(_acreage);
            sb.Append(_createUserCode);
            sb.Append(_createUserName);
            sb.Append(_createDate);
            sb.Append(_createTime);
            sb.Append(_editUserCode);
            sb.Append(_editUserName);
            sb.Append(_editDate);
            sb.Append(_editTime);
            sb.Append(_isDeactiivated);
            sb.Append(_remark);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties
        [DataMember]
        public virtual string AreaCode
        {
            get { return _areaCode.TrimEnd(); }
            set
            {
                OnAreaCodeChanging();
                _areaCode = value;
                OnAreaCodeChanged();
            }
        }
        partial void OnAreaCodeChanging();
        partial void OnAreaCodeChanged();

        [DataMember]
        public virtual string AreaName
        {
            get { return _areaName.TrimEnd(); }
            set
            {
                _areaName = value;
            }
        }

        [DataMember]
        public virtual string WarehouseCode
        {
            get { return _warehouseCode.TrimEnd(); }
            set
            {
                OnWarehouseCodeChanging();
                _warehouseCode = value;
                OnWarehouseCodeChanged();
            }
        }
        partial void OnWarehouseCodeChanging();
        partial void OnWarehouseCodeChanged();

        [DataMember]
        public virtual string WarehouseName
        {
            get { return _warehouseName.TrimEnd(); }
            set
            {
                _warehouseName = value;
            }
        }

        partial void OnAreaNameChanging();
        partial void OnAreaNameChanged();

        [DataMember]
        public virtual string AreaType
        {
            get { return _areaType.TrimEnd(); }
            set
            {
                OnAreaTypeChanging();
                _areaType = value;
                OnAreaTypeChanged();
            }
        }
        partial void OnAreaTypeChanging();
        partial void OnAreaTypeChanged();

        [DataMember]
        public virtual string TaxType
        {
            get { return _taxType.TrimEnd(); }
            set
            {
                OnTaxTypeChanging();
                _taxType = value;
                OnTaxTypeChanged();
            }
        }
        partial void OnTaxTypeChanging();
        partial void OnTaxTypeChanged();

        [DataMember]
        public virtual decimal Length
        {
            get { return _length; }
            set
            {
                OnLengthChanging();
                _length = value;
                OnLengthChanged();
            }
        }
        partial void OnLengthChanging();
        partial void OnLengthChanged();

        [DataMember]
        public virtual decimal Width
        {
            get { return _width; }
            set
            {
                OnWidthChanging();
                _width = value;
                OnWidthChanged();
            }
        }
        partial void OnWidthChanging();
        partial void OnWidthChanged();

        [DataMember]
        public virtual decimal Height
        {
            get { return _height; }
            set
            {
                OnHeightChanging();
                _height = value;
                OnHeightChanged();
            }
        }
        partial void OnHeightChanging();
        partial void OnHeightChanged();

        [DataMember]
        public virtual decimal Acreage
        {
            get { return _acreage; }
            set
            {
                OnAcreageChanging();
                _acreage = value;
                OnAcreageChanged();
            }
        }
        partial void OnAcreageChanging();
        partial void OnAcreageChanged();

        [DataMember]
        public virtual string CreateUserCode
        {
            get { return _createUserCode.TrimEnd(); }
            set
            {
                OnCreateUserCodeChanging();
                _createUserCode = value;
                OnCreateUserCodeChanged();
            }
        }
        partial void OnCreateUserCodeChanging();
        partial void OnCreateUserCodeChanged();

        [DataMember]
        public virtual string CreateUserName
        {
            get { return _createUserName.TrimEnd(); }
            set
            {
                OnCreateUserNameChanging();
                _createUserName = value;
                OnCreateUserNameChanged();
            }
        }
        partial void OnCreateUserNameChanging();
        partial void OnCreateUserNameChanged();

        [DataMember]
        public virtual string CreateDate
        {
            get { return _createDate.TrimEnd(); }
            set
            {
                OnCreateDateChanging();
                _createDate = value;
                OnCreateDateChanged();
            }
        }
        partial void OnCreateDateChanging();
        partial void OnCreateDateChanged();

        [DataMember]
        public virtual string CreateTime
        {
            get { return _createTime.TrimEnd(); }
            set
            {
                OnCreateTimeChanging();
                _createTime = value;
                OnCreateTimeChanged();
            }
        }
        partial void OnCreateTimeChanging();
        partial void OnCreateTimeChanged();

        [DataMember]
        public virtual string EditUserCode
        {
            get { return _editUserCode.TrimEnd(); }
            set
            {
                OnEditUserCodeChanging();
                _editUserCode = value;
                OnEditUserCodeChanged();
            }
        }
        partial void OnEditUserCodeChanging();
        partial void OnEditUserCodeChanged();

        [DataMember]
        public virtual string EditUserName
        {
            get { return _editUserName.TrimEnd(); }
            set
            {
                OnEditUserNameChanging();
                _editUserName = value;
                OnEditUserNameChanged();
            }
        }
        partial void OnEditUserNameChanging();
        partial void OnEditUserNameChanged();

        [DataMember]
        public virtual string EditDate
        {
            get { return _editDate.TrimEnd(); }
            set
            {
                OnEditDateChanging();
                _editDate = value;
                OnEditDateChanged();
            }
        }
        partial void OnEditDateChanging();
        partial void OnEditDateChanged();

        [DataMember]
        public virtual string EditTime
        {
            get { return _editTime.TrimEnd(); }
            set
            {
                OnEditTimeChanging();
                _editTime = value;
                OnEditTimeChanged();
            }
        }
        partial void OnEditTimeChanging();
        partial void OnEditTimeChanged();

        [DataMember]
        public virtual string IsDeactiivated
        {
            get { return _isDeactiivated.TrimEnd(); }
            set
            {
                OnIsDeactiivatedChanging();
                _isDeactiivated = value;
                OnIsDeactiivatedChanged();
            }
        }
        partial void OnIsDeactiivatedChanging();
        partial void OnIsDeactiivatedChanged();

        [DataMember]
        public virtual string Remark
        {
            get { return _remark.TrimEnd(); }
            set
            {
                OnRemarkChanging();
                _remark = value;
                OnRemarkChanged();
            }
        }
        partial void OnRemarkChanging();
        partial void OnRemarkChanged();

        #endregion
    }
}